﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SystemFrameWork.Enums
{
    public class BaseException : System.Exception
    {
        public BaseException(string msg)
            : base(msg)
        {
            _level = ExceptionLevel.Error;
        }

        public BaseException(string msg, System.Exception innerException)
            : base(msg, innerException)
        {
            _level = ExceptionLevel.Error;
        }

        public BaseException(string msg, ExceptionLevel level)
            : base(msg)
        {
            _level = level;
        }

        public BaseException(string msg, System.Exception innerException, ExceptionLevel level)
            : base(msg, innerException)
        {
            _level = level;
        }

        private ExceptionLevel _level;
        public ExceptionLevel Level
        {
            get { return _level; }
            set { _level = value; }
        }
    }
}
